package cn.wolfcode.wms.mapper;

import cn.wolfcode.wms.domain.SystemMenu;
import cn.wolfcode.wms.query.QueryObject;

import java.util.List;
import java.util.Map;

public interface SystemMenuMapper {
    int deleteByPrimaryKey(Long id);

    int insert(SystemMenu entity);

    SystemMenu selectByPrimaryKey(Long id);

    List<SystemMenu> selectAll();

    int updateByPrimaryKey(SystemMenu entity);
    //分页
    List<SystemMenu> queryForList(QueryObject qo);

    SystemMenu selectByParentId(Long parentId);

    List<Map<String,Object>> selectByParentSn(String parentSn);

    List<Map<String,Object>> selectByEmployeeId(String parentSn, Long employeeId);
}